////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                                                            //
//                                                         WNProject                                                          //
//                                                                                                                            //
//            This file is distributed under the BSD 2-Clause open source license. See License.txt for details.               //
//                                                                                                                            //
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

#ifndef __WN_LINUX_LISTEN_CONNECTION_H__
#define __WN_LINUX_LISTEN_CONNECTION_H__
#include "WNNetworking/inc/WNLinuxConnection.h"

namespace WNNetworking {
    class WNLinuxINConnection;
    class WNLinuxListenConnection: public WNLinuxConnection {
    public:
        WNLinuxListenConnection(WNNetworkManager& _manager, WNConnectionType _type, WN_UINT16 _port, WNConnectedCallback _connected);
        WNNetworkingError Initialize();
        virtual ~WNLinuxListenConnection();
        WNLinuxINConnection* ReceiveConnection();
    private:
        WN_UINT16 mPort;
        WNConnectedCallback mConnectedCallback;
        WNConnectionType mType;
    };
};

#endif//__WN_LINUX_LISTEN_CONNECTION_H__
